<template>
  <div>
    <div class="head">
      <MainSlot>
        <span slot="title">EMS编号导入</span>
        <button slot="one">导入数据</button>
        <button slot="two">数据入库</button>
        <button slot="three">退出</button>
        <!-- <button slot="four">退出</button> -->
      </MainSlot>
    </div>
  </div>
</template>

<script>
import MainSlot from "../common/MainSlot";
export default {
  name: "",
  data() {
    return {};
  },
  methods: {},
  beforeCreate() {
    if (sessionStorage.getItem("token") == null) {
      this.$router.push("/login");
    } else {
      let token = sessionStorage.getItem("token");
      let length = sessionStorage.getItem("token").length;
      if (token[length - 1] == "0") {
        this.$router.replace("/login");
      }
    }
  },
  components: {
    MainSlot,
  },
};
</script>

<style scoped>
</style>